//
//  RemoteUsersComponent.swift
//  Hermes
//
//  Created by FH on 2021/1/17.
//  Copyright © 2021 Agora. All rights reserved.
//

import Foundation
// TODO: remove
class RemoteUsersComponent {
    private let appContext = HermesContext()
    
    init() {
        self.dataBinding()
    }
    
    func dataBinding() {
        
    }
    
    func layoutViews(yoga: FLContext, _ superView: NSView) {
        let bg = NSView()
        bg.bind(to: yoga, superView) { it in
            it.width = constRemoteUsersPanelWidth.toFLValue()
            it.marginBottom = 2
            it.marginLeft = 2
        }
        bg.flBackgroundColor = .gray
        
        let lbl = FLLabel()
        lbl.bind(to: yoga, bg)
        lbl.font = NSFont.systemFont(ofSize: 12)
        lbl.textColor = .white
        lbl.flText = "#1. 1234567890"
    }
}
